package com.woniu.zsd.user.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="user-service")
public interface UserFeignClient {
    //调用user-service模块的方法根据userId查询用户积分
    @GetMapping("/userService/user/getUserPointById")
    Integer getUserPoint(@RequestParam("userId") Integer userId) throws Exception;
    //新增用户积分
    @GetMapping("/userService/user/addUserPoint")
    void addUserPoint(@RequestParam("userId") Integer userId,@RequestParam("point") Integer point) throws Exception;
}
